<form id="pagerForm" method="post" action="/index.php?act=news&st=main">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="/index.php?act=news&st=main" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					<select class="combox" name="category_id" ref="category_parent_add_id" refUrl="/index.php?act=news&st=get_category&id={value}&list=list">
						<option value="0">所有新闻</option>
						{foreach item=category from=$topic}
						<option value="{$category.category_id}" {if $category_id == $category.category_id} selected{/if}>{$category.category_name}</option>
						{/foreach}
					</select>
				</td>
				<td>
					<select class="combox" name="category_parent_id" id="category_parent_add_id">
						<option value="0">所有栏目</option>
						{foreach item=item key=key from=$child}
						<option value="{$item.category_id}" {if $item.category_id eq $category_parent_id}selected{/if}>{$item.category_name}</option>
						{/foreach}
					</select>
				</td>
				<td>
					新闻标题：<input type="text" name="keyword" value="{$keyword}" />
				</td>
				<td>
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
					</ul>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/index.php?act=news&st=newsAdd" target="dialog" rel="add_news" title="添加新闻" mask="true" width="1000" height="450"><span>添加</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="/index.php?act=news&st=newsDelete" class="delete" postType="string"><span>删除</span></a></li>
			<li><a class="edit" href="/index.php?act=news&st=newsEdit&id={sid_user}" target="dialog" rel="edit_news" title="编辑新闻" mask="true" width="1000" height="450"><span>修改</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="113">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th>新闻标题</th>
				<th width="120">所属栏目</th>
				<th width="120">作者</th>
				<th width="180">创建日期</th>
				<th width="180">修改日期</th>
			</tr>
		</thead>
		<tbody>
			{foreach item=news from=$news_list}
			<tr target="sid_user" rel="{$news.id}">
				<td><input name="ids" value="{$news.id}" type="checkbox"></td>
				<td>{$news.title}</td>
				<td>{if !empty($news.parent_id)}行情资讯-->{/if}{$news.category_name}</td>
				<td>{$news.author}</td>
				<td>{$news.raw_add_time}</td>
				<td>{$news.raw_update_time}</td>
			</tr>
			{/foreach}
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				{foreach item=num from=$shoNum}
				<option value="{$num}" {if $numPerPage eq $num}selected{/if}>{$num}</option>
				{/foreach}
			</select>
			<span>条，共{$total}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$total}" numPerPage="{$numPerPage}" pageNumShown="{$pageNumShown}" currentPage="{$pageNum}"></div>
	</div>
</div>